package com.hoyue.classroom.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author Hoyue_network1
 * @version 1.0
 * Creat by 2019/8/21 11:30
 */
public class Homework {
	//
	private Long homeworkId;
	// 作业标题
	private String homeworkTitle;
	// 内容
	private String homeworkContent;
	// 发布时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
	private Date startTime;
	// 截至时间
	@JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
	private Date endTime;

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setHomeworkContent(String homeworkContent) {
		this.homeworkContent = homeworkContent;
	}

	public Long getHomeworkId() {
		return homeworkId;
	}

	public void setHomeworkId(Long homeworkId) {
		this.homeworkId = homeworkId;
	}

	public String getHomeworkContent() {
		return homeworkContent;
	}

	public void setHomeworkTitle(String homeworkTitle) {
		this.homeworkTitle = homeworkTitle;
	}

	public String getHomeworkTitle() {
		return homeworkTitle;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	@Override
	public String toString() {
		return "Homework{" +
				"homeworkId=" + homeworkId +
				", homeworkTitle='" + homeworkTitle + '\'' +
				", homeworkContent='" + homeworkContent + '\'' +
				", startTime=" + startTime +
				", endTime=" + endTime +
				'}';
	}
}
